package www.etslink.cn.keyboardmaster;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import www.etslink.cn.keyboardmaster.widget.ETSPinDialog;
import www.etslink.cn.keyboardmaster.widget.ETSPinInputListener;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void click(View view) {

        ETSPinDialog dialog = new ETSPinDialog.Builder(this).setTitle("请输入密码").setListener(new ETSPinInputListener() {
            @Override
            public void onCancle() {
                Log.e("pin--->", "onCancle");
            }

            @Override
            public void onResult(String result) {
                Log.e("pin--->", result);
            }
        }).create();
        dialog.show();
    }
}
